/*FILE UPDATE INFO**************************************************************
 * Author   : PURESUN
 * Update   : 2024-01-05
 * Info     : Create a toast widget and auto hide after a few seconds
 * Version  : 1.0.0
 ******************************************************************************/

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __TOAST_H__
#define __TOAST_H__

/* Includes ------------------------------------------------------------------*/
#include "lvgl/lvgl.h"

/* Exported macro ------------------------------------------------------------*/

/* Exported types ------------------------------------------------------------*/

/* Exported constants --------------------------------------------------------*/

/* Exported variables --------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/
void toast_init(lv_obj_t **toast, lv_font_t *font);
void show_toast(lv_obj_t **toast, char *text, int width, lv_font_t *font);
void show_toast_e(char *text, int width);
void show_toast_o(char *text, int width);

#endif /* __TOAST_H__ */
/************************ (C) COPYRIGHT PURESUN *****END OF FILE***************/
